/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ac.za.designPatterns.creational.abstractFactory.factory;

import ac.za.designPatterns.creational.abstractFactory.factory.impl.UnderGradFatory;
import ac.za.designPatterns.creational.abstractFactory.factory.impl.PostGradFactory;
import ac.za.designPatterns.creational.abstractFactory.model.Student;

/**
 *
 * @author Sandiso Toto
 */
public class AsbstractFactory {
    
    public StudentFactory getStudentFactory(String type){
    
        if("fullTimeStudent".equals(type)){
           return new UnderGradFatory();
        }else{
             return new PostGradFactory();
        }
    }
    
}
